import {RenderHtml, onRowDoubleClick} from "./../common/index.js";
import CommonTreeReferStruc from "./../../../components/ReferTreeStruc";
import Button from 'bee-button';
import 'bee-button/build/Button.css';
export function  TableItems (){
    return{
        items: [
            {
                itemtype: "table",
                title :'人员列表',
                columns :[
                    { title: "企业名称", dataIndex: "name", key: "name", width: 300, render :(text, record, index)=>{
                        return(
                            <span onClick={()=>onRowDoubleClick.call(this, record, index, event)}  className= "rowClassName" >{text}</span> 
                        ) 
                    }},
                    { title: "企业角色", dataIndex: "role", key: "role", width: 300 },
                    { title: "组织范围", dataIndex: "pkOrgs", key: "pkOrgs", width:300 },
                    { title: "计划授权数", dataIndex: "plan_authorized_num", key: "plan_authorized_num", width: 300 },
                    { title: "实际授权数", dataIndex: "real_authorized_num", key: "real_authorized_num", width: 300 },
                    { title: "人员数", dataIndex: "personnel_num", key: "personnel_num", width: 300 },
                    { title: "操作", dataIndex: "operation", key: "operation", width: 100, fixed: "right", render :(text, record, index)=>RenderHtml['operationHtml'].call(this, text, record, index, [])}
                ],
                tablename: 'table1',
                refPk: 'name',
                label: "企业名称",
                required: true,
               
            },
            
        ]
    }
}

export{FormItems} ;